package com.cyam.service;


import java.util.List;
import java.util.Map;

import com.cyam.base.IBaseService;
import com.cyam.domain.Article;
import com.cyam.util.Pager;

/**
 * 文章服务层接口
 * @author CourageAQ
 *
 */
public interface ArticleService extends IBaseService<Article>{
	
	/**网站主页，根据点击量，显示最高的八条数据*/
	public abstract List<Article> listArticleByClicknum() throws Exception;
	
	
	public abstract Pager selectPage3(Map<String, Object> map, int page, int size) throws Exception;
	
	
	public Pager countPager3(Map<String, Object> map,int page, int size) throws Exception;
	
	
	/**查询近一年然后按月分组*/
	public abstract List<Article> selectByTime(Map<String, Object> map) throws Exception;
	
	
	/**根据时间查询 返回数量*/
	public abstract Pager countByTime2(Map<String, Object> map,int page, int size) throws Exception;
	
	/**根据时间查询 返回数据*/
	public abstract Pager selectByTime2(Map<String, Object> map,int page, int size) throws Exception;
	
	
	/**查询时间倒叙前五*/
	public abstract List<Article> listOfTimeTop5() throws Exception;
	
	
	/**随机查询五条记录*/
	public abstract List<Article> listRandTop5() throws Exception;

	public abstract Pager searchCountArticle(Map<String, Object> map,int page, int size) throws Exception;
	
	/**search查询*/
	public abstract Pager searchListArticle(Map<String, Object> map,int page, int size) throws Exception;
}
